package com.wpen.unit.web.dto.job;

import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.wpen.unit.commun.BaseRequest;

@Schema(description = "任务作业-新增(请求)")
@Data
@EqualsAndHashCode(callSuper=false)
public class JobInfoAddRequest extends BaseRequest implements Serializable {
    private static final long serialVersionUID = 3748013572408380531L;

    @Schema(description =  "业务系统编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String bizCode;
    @Schema(description =  "批次编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String batchCode;
    @Schema(description =  "任务编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String taskCode;
    @Schema(description =  "任务作业编号", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String jobCode;
    @Schema(description =  "序号", required = true)
    @NotNull
    private Integer orders;
    @Schema(description =  "任务作业说明")
    @Size(min = 0, max = 256)
    private String jobName;
    @Schema(description =  "失败忽略", required = true)
    @NotEmpty
    @Size(min = 0, max = 1)
    private String failIgnore;
    @Schema(description =  "常规任务通用参数")
    @Size(min = 0, max = 512)
    private String normParams;
    @Schema(description =  "常规任务分片参数")
    @Size(min = 0, max = 512)
    private String normShardingParams;

}